package 学生评教管理系统;

public class Teacher {
    //设置Teacher类的属性
    private String teaId;   //工号
    private String teaName;  //姓名
    private String sex;  //性别
    private String tel;  //电话
    private String professor;  //职称
    private int age;   //年龄
    String teachCourse[];  //所授课程


    //构造方法
    Teacher() {

    }

    Teacher(String teaId, String teaName) {
        this.teaId = teaId;
        this.teaName = teaName;
    }

    Teacher(String teaId, String teaName, String sex, String tel, String professor, int age) {
        this(teaId, teaName); //this的用法
        this.sex = sex;
        this.tel = tel;
        this.professor = professor; //地址
        this.age = age;
    }

    //工号属性封装
    public String getTeaId() {
        return teaId;
    }

    public void setTeaId(String teaId) {
        this.teaId = teaId;
    }

    //姓名属性封装
    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    //性别属性封装
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    //电话属性封装
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    //职称属性封装
    public String getProfessor() {
        return professor;
    }

    public void setProfessor(String professor) {
        this.professor = professor;
    }

    //年龄属性封装
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //所授课程设置
    public void setTeachCourse(String[] cIds) {
        teachCourse = new String[cIds.length];
        for (int j = 0; j < cIds.length; j++) {
            teachCourse[j] = cIds[j];
        }
    }
}